import request from '@/utils/request'

// 查询感官检验子列表
export function listSensory_sub(query) {
  return request({
    url: '/Laboratory/sensory_sub/list',
    method: 'get',
    params: query
  })
}

// 查询感官检验子详细
export function getSensory_sub(id) {
  return request({
    url: '/Laboratory/sensory_sub/' + id,
    method: 'get'
  })
}

// 新增感官检验子
export function addSensory_sub(data) {
  return request({
    url: '/Laboratory/sensory_sub',
    method: 'post',
    data: data
  })
}

// 修改感官检验子
export function updateSensory_sub(data) {
  return request({
    url: '/Laboratory/sensory_sub',
    method: 'put',
    data: data
  })
}

// 删除感官检验子
export function delSensory_sub(id) {
  return request({
    url: '/Laboratory/sensory_sub/' + id,
    method: 'delete'
  })
}
